package com.aaron.contentcenter.feignclient.fallback;

import com.aaron.contentcenter.domain.dto.user.UserDTO;
import com.aaron.contentcenter.feignclient.UserCenterFeignClient;
import org.springframework.stereotype.Component;

/**
 * Description:
 *
 * @author linzhj
 * @date 2021/7/18 15:30
 */
@Component
public class UserCenterFallback implements UserCenterFeignClient {

    @Override
    public UserDTO findById(Integer id) {
        //自定义处理feign整合的sentinel fallbock
        UserDTO userDTO = new UserDTO();
        userDTO.setWxNickname("默认用户");
        return userDTO;
    }
}
